package base.extend;

/**
 * @Description:
 * @Author: hmm
 * @CreateDate: 2019/8/29
 * @UpdateUser:
 * @UpdateDate: 2019/8/29
 * @UpdateRemark: 修改备注
 * @Version: 1.0
 */
public class Parent {

    private String name;
    private String age;


    static {
        System.out.println("父类static");
    }




    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public Parent() {
        System.out.println("父类无参构造");
    }

    public Parent(String name, String age) {
        this.name = name;
        this.age = age;
        System.out.println("父类有参构造");
    }
}
